/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.click.app.service.impl;

import com.click.app.dao.PaymentsPantDao;
import com.click.app.model.Employee;
import com.click.app.model.PaymentsPant;
import com.click.app.service.PaymentsPantManager;
import java.util.Date;
import java.util.List;

/**
 *
 * @author ariel
 */
public class PaymentsPantManagerImpl extends GenericManagerImpl<PaymentsPant, Long> implements PaymentsPantManager {

    PaymentsPantDao paymentsPantDao;

    public PaymentsPantManagerImpl(PaymentsPantDao paymentsPantDao) {
        super(paymentsPantDao);
        this.paymentsPantDao = paymentsPantDao;
    }

    public List<PaymentsPant> findByDate(Date date) {
        return paymentsPantDao.findByDate(date);
    }

    public List<PaymentsPant> findByEmployeePeriod(Employee employee, Date initDate, Date endDate){
        return paymentsPantDao.findByEmployeePeriod(employee, initDate, endDate);
    }
}
